package com.sahala.downimage.dao.impl;

import org.mybatis.spring.SqlSessionTemplate;

import com.sahala.downimage.dao.IImageDAO;
import com.sahala.downimage.domain.ImageDO;

public class ImageDAOImpl implements IImageDAO {
	
	 public SqlSessionTemplate sqlSession;

	@Override
	public int save(ImageDO image){
		return sqlSession.insert("ImageDAO.save", image);
	}

	public SqlSessionTemplate getSqlSession() {
		return sqlSession;
	}

	public void setSqlSession(SqlSessionTemplate sqlSession) {
		this.sqlSession = sqlSession;
	}
	
	

}
